import request from '@/utils/request'

// 登录方法
export function login(username, password, code) {
  const data = {
    "verifyCodeValue": code,
    "user": {
      "username": username,
      "pwd": password
    }
  }
  return request({
    url: '/sys/user/admin/pwdLogin',
    method: 'post',
    data: data
  })
}

// 退出方法
export function logout() {
  return request({
    url: '/sys/authc/logout',
    method: 'get'
  })
}

// 获取验证码
export function getCodeImg() {
  return request({
    url: '/verifyCode/authcWeb',
    method: 'get'
  })
}